﻿using System;
using System.Runtime.InteropServices;
using System.Text;

namespace MakeExDll
{
    class Program
    {
        static void Main(string[] args)
        {
            string str = "43214524352qweqwasamy test";

            byte[] indata = Encoding.Default.GetBytes(str);
            byte[] outdata = new byte[64];
            
            Hello(indata, outdata);
            string test = Encoding.Default.GetString(outdata).Trim('\0');
            Console.ReadLine();
        }

        [DllImport("Ctest.dll", EntryPoint = "Hello", CallingConvention = CallingConvention.Cdecl)]
        private static extern void Hello(byte[] inData, byte[] outData);
    }
}
